package designpattern.prototype.ShallowClone;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("fish");
        list.add("play ball");
        SpecificPrototype specificPrototype = new SpecificPrototype("steak", "man",list);
        SpecificPrototype clone = specificPrototype.clone();
        clone.getHobbies().add("swing");
        System.out.println(specificPrototype);
        System.out.println(clone);
    }
}
